package com.hd.rcugrc.project.leaveapplication.leave.operator;

import com.hd.rcugrc.bpm.*;

import java.util.List;
import java.util.Map;

public class OaOfficeNoAdministratorApprovalOperator implements ConditionTask {
    @Override
    public Boolean execute(ActiveStep activeStep, String actionId,
                           Map<String, List<Operator>> successors,
                           FlowInstance flowInstance, FlowDefinition flowDefinition,
                           User caller, Map<String, Object> context) {
        System.out.println("caller.getAccount()" + caller.getAccount());
        if("hdadmin".equals(caller.getAccount())) {
            return false;
        } else {
            return true;
        }
    }
}
